package com.lj.common.core.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.compress.utils.Lists;

import java.util.List;

/**
 * 树形结构基础类
 *
 * @author 小李飞刀
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TreeModel extends BaseModel {

    private static final long serialVersionUID = -1676671730020650680L;

    /**
     * 父菜单名称
     */
    private String parentName;

    /**
     * 父菜单ID
     */
    private Long parentId;

    /**
     * 显示顺序
     */
    private Integer orderNum;

    /**
     * 祖级列表
     */
    private String ancestors;

    /**
     * 子部门
     */
    private List<?> children = Lists.newArrayList();
}
